package HomeWork3;

public class Chick extends Animaal{
    Chick(String name,int age,String color){
        super(name, age, color);
    }
    public void eat(){
        System.out.println("正在啄小米的"+name+"是"+color+"色"+age+"岁的小鸡");
    }
    void layEggs() {
        System.out.println("正在下蛋的"+name+"是"+color+"色"+age+"岁的小鸡");
    }
}
